// 数据库查询方法
package com.logindemo.springbootlogindemo.repository;


import com.logindemo.springbootlogindemo.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao extends JpaRepository<User, Long> {
    User findByUname(String username); // 根据账号查找用户
    User findByUnameAndPassword(String uname, String password);
    User findByPhonenumber(String phonenumber);
    User findByEmail(String email);
}
